<?php
$sql = "select * from meta where mt_id = 1";
$rsmt = DataProvider::ExecuteQuery($sql);
while($mt = mysql_fetch_array($rsmt))
	{
echo'
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="'.$mt["mt_des"].'" />
<meta name="keywords" content="'.$mt["mt_key"].'" />
<meta name="ROBOTS" content="'.$mt["mt_robot"].'" />
<meta name="google-site-verification" content="P5DkQ2snxl62jA_Bhe49Kgv4Gxq9fsloWRK-yt6DM1E" />
<link href="'.$host["l_link"].$div["md_link"].'sty/index.css" rel="stylesheet" type="text/css" />
<link href="'.$host["l_link"].$div["md_link"].'sty/cbcscbindex.css" rel="stylesheet" type="text/css" />
<LINK REL="SHORTCUT ICON" HREF="'.$host["l_link"].$div["md_sty"].'flavicon.gif"></head>
<script type="text/javascript" src="'.$host["l_link"].$div["md_link"].'jav/popup.js"></script>
<body><center>
<div align="center" style="background:url('.$div["md_sty"].'div.top.png) repeat-x;" id="maintop"> 
	<div class="div960">
    	<div class="divlogo">
    	<a href="'.$host["l_link"].'"><img src="'.$host["l_link"].$div["md_sty"].'div.logo.text.png" border="0"></a>
        </div>
        <div class="divspace"></div>
        <div class="divsearch">
            <div class="divbgform">
            <form method="POST" action="'.$host["l_link"].'home.php?typ=tools&act=search">
            <input type="text" id="keyword" name="keyword" style="width:100%" /></div>
            <div class="divspform"></div>
            <div class="divenform">
            <input type="submit" value="Search" autocomplete="off"></form>
            </div>
        </div>
        <div class="divspace1"></div>';
	}
				if(!isset($_SESSION["IsLogin"]))
				{
					$_SESSION["IsLogin"] = false;
				}
					if($_SESSION["IsLogin"] == false)
				{
				echo '
		<div class="divmenu" align="right">
        	<div class="divsignin">
            <a href="'.$host["l_link"].'home.php?typ=user&act=signin"><img src="'.$host["l_link"].$div["md_sty"].'div.signin.png" border="0"></a>
            </div>
            <div class="divsptools"></div>
            <div class="divlogin">
            <a href="'.$host["l_link"].'home.php?typ=user&act=login"><img src="'.$host["l_link"].$div["md_sty"].'div.login.png" border="0"></a>
            </div>
        </div>';}
				else
				{
				echo'
		<div class="divmenu" align="right">
        	<div class="divaccount">
            <ul id="cbindexebul_table" class="cbindexebul_menulist">
			  <li><a><img id="cbi_cbindex_2" src="'.$host["l_link"].$div["md_sty"].'div.account.png" name="ebbcbindex_2" width="81" height="40" style="vertical-align: bottom;" border="0" alt="account" title="" /></a></li>
			</ul>
			<ul id="ebul_cbindex_2" class="ebul_cbindex" style="display: none;">
			<li><a href="'.$host["l_link"].'home.php?typ=user&act=doipass">Đổi Mật Khẩu</a></li>
			<li><a href="'.$host["l_link"].'home.php?typ=user&act=thongtin">Thông Tin</a></li>
			<li><a href="'.$host["l_link"].'home.php?typ=user&act=dangxuat">Đăng Xuất</a></li>
			</ul>
			<script type="text/javascript" src="'.$host["l_link"].$div["md_link"].'jav/cbjscbindex.js"></script>
            </div>
            <div class="divsptools"></div>
            <div class="divcard">
            <a href="'.$host["l_link"].'home.php?typ=product&act=seecart"><img src="'.$host["l_link"].$div["md_sty"].'div.card.png" border="0"></a>
            </div>
            <div class="divsptools"></div>';
				if(!isset($_SESSION["IsAdmin"]))
				{
					$_SESSION["IsAdmin"] = false;
				}
					if($_SESSION["IsAdmin"]==true)
					{
					echo '
			<div class="divadmin">
				<ul id="ebul_cbindex_1" class="ebul_cbindex" style="display: none;">
				<li><a title="">Người Dùng</a>
				  <ul id="ebul_cbindex_1_1">
				  <li><a href="'.$host["l_link"].'home.php?typ=admin&act=userdetail">Xem Thông Tin</a></li>
				  <li><a href="'.$host["l_link"].'home.php?typ=admin&act=usersee">Xem Toàn Bộ</a></li>
				  </ul></li>
				<li><a >Sản Phẩm</a>
				  <ul id="ebul_cbindex_1_4">
				  <li><a href="'.$host["l_link"].'home.php?typ=admin&act=spadd">Thêm Sản Phẩm</a></li>
				  <li><a href="'.$host["l_link"].'home.php?typ=admin&act=spsee">Xem Toàn Bộ</a></li>
				  </ul></li>
				<li><a title="">Hóa Đơn</a>
				  <ul id="ebul_cbindex_1_7">
				  <li><a href="'.$host["l_link"].'home.php?typ=admin&act=hoadon">Xem Hóa Đơn</a></li>
				  </ul></li>
				<li><a title="">Bài Viết</a>
				  <ul id="ebul_cbindex_1_9">
				  <li><a href="'.$host["l_link"].'home.php?typ=admin&act=topicadd">Thêm Bài Viết</a></li>
				  <li><a href="'.$host["l_link"].'home.php?typ=admin&act=topicsee">Xem Bài Viết</a></li>
				  </ul></li>
				<li><a title="">Music</a>
				  <ul id="ebul_cbindex_1_12">
				  <li><a href="'.$host["l_link"].'home.php?typ=admin&act=musicadd">Thêm Bài Hát</a></li>
				  <li><a href="'.$host["l_link"].'home.php?typ=admin&act=musicsee">Xem Toàn Bộ</a></li>
				  </ul></li>
				</ul>
				<ul id="cbindexebul_table" class="cbindexebul_menulist">
				  <li class="spaced_li"><a><img id="cbi_cbindex_1" src="'.$host["l_link"].$div["md_sty"].'div.admin.png" name="ebbcbindex_1" width="60" height="40" style="vertical-align: bottom;" border="0" alt="admin" title="" /></a></li>
				</ul>
				<script type="text/javascript" src="'.$host["l_link"].$div["md_link"].'jav/cbjscbindex.js"></script></body>
            </div>';
					}
					echo'
        </div>';
				}
echo '
	</div>
</div>';
?>